add_executable(optimal_binary_tree_ut ut.cpp)
add_dependencies(optimal_binary_tree_ut gtest)

target_link_libraries(optimal_binary_tree_ut lib_optimal_binary_tree)
target_link_libraries(optimal_binary_tree_ut gtest${CMAKE_STATIC_LIBRARY_SUFFIX} gtest_main${CMAKE_STATIC_LIBRARY_SUFFIX} )
if(NOT DEFINED MSVC)
  target_link_libraries(optimal_binary_tree_ut pthread)
endif()

add_test(optimal_binary_tree_ut ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/optimal_binary_tree_ut)
